﻿<%@ Page Language="C#" MasterPageFile="~/Adminpages/Site2.Master" AutoEventWireup="true" CodeBehind="Ag.aspx.cs" Inherits="websoni.Adminpages.WebForm4" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            width: 100%;
            height: 432px;
        }
        .style3
        {
            height: 19px;
        }
        .style4
        {
            height: 22px;
            background-color: #808080;
        }
        .style5
        {
            height: 36px;
            background-color: #808080;
        }
        .style6
        {
            height: 26px;
            background-color: #808080;
        }
        .style7
        {
            height: 214px;
        }
        .style8
        {
            height: 19px;
            background-color: #FFFFFF;
        }
        .style9
        {
            height: 26px;
            background-color: #CCCCCC;
        }
        .style10
        {
            height: 36px;
            background-color: #CCCCCC;
        }
        .style11
        {
            height: 22px;
            background-color: #CCCCCC;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <br />
    </p>
    <table class="style2">
        <tr>
            <td class="style8">
                <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Italic="True" 
                    Font-Underline="True" Text="ALBUM"></asp:Label>
            </td>
            <td class="style8">
                &nbsp;</td>
            <td class="style3">
                <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Italic="True" 
                    Font-Underline="True" Text="PHOTO GALLERY"></asp:Label>
            </td>
            <td class="style3">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style11">
                <asp:Label ID="lbaname" runat="server" Text="Album Name"></asp:Label>
            </td>
            <td class="style11">
                <asp:TextBox ID="tbname" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="tbname" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
            <td class="style4">
                <asp:Label ID="Label3" runat="server" Text="Select Album Name"></asp:Label>
            </td>
            <td class="style4">
                <asp:DropDownList ID="ddalbum" runat="server" Height="16px" Width="180px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="ddalbum" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style11">
                <asp:Label ID="lbfront" runat="server" Text="Album Cover"></asp:Label>
            </td>
            <td class="style11">
                <asp:FileUpload ID="uploadcover" runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="uploadcover" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
            <td class="style4">
                <asp:Label ID="Label4" runat="server" Text="Upload Photo"></asp:Label>
            </td>
            <td class="style4">
                <asp:FileUpload ID="uploadphoto" runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="uploadphoto" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style10">
                &nbsp;</td>
            <td class="style10" valign="top">
                <asp:Button ID="btnok" runat="server" onclick="btnok_Click" Text="OK" />
            </td>
            <td class="style5" valign="top">
                <asp:Label ID="Label5" runat="server" Text="Description"></asp:Label>
            </td>
            <td class="style5">
                <asp:TextBox ID="tbdescription" runat="server" TextMode="MultiLine" 
                    Height="123px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="tbdescription" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style9">
                &nbsp;</td>
            <td class="style9">
                &nbsp;</td>
            <td class="style6">
                &nbsp;</td>
            <td class="style6">
                <asp:Button ID="btn1ok" runat="server" onclick="btn1ok_Click" Text="OK" />
            </td>
        </tr>
        <tr>
            <td class="style8">
            </td>
            <td class="style3">
            </td>
            <td class="style3">
            </td>
            <td class="style3">
            </td>
        </tr>
        <tr>
            <td colspan="2" class="style3">
                <asp:Label ID="Label7" runat="server" Text="Albums"></asp:Label>
            </td>
            <td colspan="2" class="style3">
                <asp:Label ID="Label8" runat="server" Text="Photo Gallery"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2" 
                style="margin-left: 40px; text-align: left; background-color: #666666;" 
                class="style7" valign="top">
                <asp:DataList ID="DataList1" runat="server" RepeatColumns="3" Width="274px">
                    <ItemTemplate>
                        <asp:Image ID="Image1" runat="server" Height="79px" 
                            ImageUrl='<%# "~/images/"+Eval("front") %>' Width="82px" />
                        <br />
                        <asp:HyperLink ID="HyperLink6" runat="server" 
                            NavigateUrl='<%# "~/Adminpages//Ag.aspx?id="+Eval("alid") %>' 
                            Text='<%# Eval("album_name") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:DataList>
            </td>
            <td colspan="2" style="margin-left: 40px; background-color: #999999;" 
                class="style7" valign="top">
                <asp:DataList ID="DataList2" runat="server" RepeatColumns="3" Width="341px" 
                    style="text-align: left">
                    <ItemTemplate>
                        <asp:Image ID="Image2" runat="server" Height="82px" 
                            ImageUrl='<%# "~/images/"+Eval("images") %>' Width="84px" />
                        <br />
                        <asp:Label ID="Label6" runat="server" Text='<%# Eval("image_description") %>'></asp:Label>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
        <tr>
            <td colspan="4" style="margin-left: 40px" class="style3">
                &nbsp;</td>
        </tr>
        </table>
</asp:Content>
